﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KiDS_Projekat
{
	/// <summary>
	/// Enkapsulacija nepoznatog zahteva koji stigne
	/// </summary>
	public class ErrorCommand : Command
	{
		private string _code;
		private string _message;
		
		public ErrorCommand(SOCKET socket, string code, string message)
			: base(socket)
		{
			_code = code;
			_message = message;
		}


		public override void DoCommmand()
		{
			Native.SendMessage(_code + " " + _message, _socket);
			Native.closesocket(_socket);
		}

	}
}
